import { Application } from "mydog";
import { IUidSid } from "../../../app/definition/interface";
import roomManager from "../../../app/roomManager";

declare global {
  interface Rpc { room: { main: Remote } }
}

export default class Remote {
  private app: Application;
  constructor(app: Application) {
    this.app = app;
  }

  public async onMatchRoom(gameMode: number, users: Array<IUidSid>) {
    return await roomManager.onMatchRoom(gameMode, users);
  }


}
